package com.easylinkin.linkappapi.keywork.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author HuangLei
 * @since 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rail_safe_table_record")
public class SafeTableRecord extends Model<SafeTableRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联主表id
     */
    @TableField("table_id")
    private Long tableId;


    /**
     * 关联明细id
     */
    @TableField("item_id")
    private Long itemId;

    /**
     * 检查结果：-1否 ，1是
     */
    @TableField("check_result")
    private Integer checkResult;

    /**
     * 检查人
     */
    @TableField("check_user_id")
    private Long checkUserId;

    @TableField("check_time")
    private Date checkTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
